package adv331;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.List;

/**
 * @author oldliu
 * @since 1.0
 */
public class StudentGet {
    public static void main(String[] args) {
        try {
            ObjectInputStream oin=new ObjectInputStream(new FileInputStream("d:/temp/student.txt"));
            List<Student> o = (List<Student>) oin.readObject();
            oin.close();
            for(Student s:o){
                System.out.println(s);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
